//
//  GooglePassWordManager.swift
//  Exchange
//
//  Created by 孟祥群 on 2018/5/31.
//  Copyright © 2018年 common. All rights reserved.
//

import UIKit
enum googleStyle {
    case googlePassWordStyle //单独密码认证
    case googleDoubleAuthen //双重认证
}
enum validateStyle {
    case none
    case telStyle //手机认证
    case googleStyle //谷歌认证
    case emailStyle //邮箱认证
}
@objc protocol GoolPassWordDelegate:class {
    func googleVerificationt(passWord:String)
    
    /// 关闭回调
   @objc optional func cancel()
}
class GooglePassWordManager: NSObject {
    class func creatGoolPassWord(dataSource:GoolPassWordDelegate?, style:googleStyle, validate:validateStyle = .none) {
        let googleView = GooglePassWordView(dataSource: dataSource, style:style,validate:validate)
        googleView.setUpUI()
    }
    
}
